From 350318c598f7ac8eca4ecdf26fc7a3e264c8d43b Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Wed, 31 Jan 2007 11:05:36 -0800 Subject: [PATCH] Make sure OptVals.quiet is always present (fixes xm shutdown -w). Signed-off-by: Brendan Cully --- tools/python/xen/xm/opts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xm/opts.py b/tools/python/xen/xm/opts.py index 1b80ceeff8..0c2566b752 100644 --- a/tools/python/xen/xm/opts.py +++ b/tools/python/xen/xm/opts.py @@ -250,7 +250,8 @@ class OptVar(Opt): class OptVals: """Class to hold option values. """ - pass + def __init__(self): + self.quiet = False class Opts: """Container for options. @@ -276,7 +277,6 @@ class Opts: self.argv = [] # Option values. self.vals = OptVals() - self.vals.quiet = 0 # Variables for default scripts. self.vars = {} # Option to use for bare words. -- 2.30.2